package com.gitee.wsl.compose.mvi.merge

import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.Stable
import androidx.compose.runtime.compositionLocalOf


class LayoutOrientationMerger : ComponentMerger<LayoutOrientation> {
    override val default: LayoutOrientation = Default

    companion object {
        @Stable
        val Default = LayoutOrientation.DEFAULT
    }
}

/**
 * Provides the direction of orientation (vertical or horizontal) when layout out a composable.
 */
val LocalLayoutOrientation: ProvidableCompositionLocal<LayoutOrientation> = compositionLocalOf { LayoutOrientation.DEFAULT }

enum class LayoutOrientation {
    DEFAULT,
    VERTICAL,
    HORIZONTAL
}